SlideShare a Scribd company logo
1 of 42
Download to read offline
WEB TYPOGRAPHY
 Presented by Matthew Buchanan
 auckland web meetup, august af bjjg

 With acknowledgement to Jeff Croft, Mark Boulton, Richard Rutter
august af bjjg
WEB TYPOGRAPHY auckland web meetup




     “The screen is not a place where
     you want to get fancy with fonts.”
                                     — john gruber, the talk show
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic UniTs
      The em
  * when type is distance(ie, with no leading)
    An em is the           between baselines
                 set solid

  *   Relative unit equivalent to type size

  *   Generally treated as a square entity

  *   An en is half the width of an em
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic UniTs
      In CSS, the em square is set using
      the font-size property
  *   Can be set in a variety of units:
         Absolute (pixels)
         Relative (ems, percentages)

  *   Absolute sizes do not rely on inheritance

  *   Type with size specified in pixels cannot be
      resized using browser controls in IE6 or below
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic UniTs
      WHicH is BETTER?

  *   Pixel sizing better for maths

  *   Em sizing more flexible as margins
      grow as text size increases

  *   Sizing text in pixels is an IE problem, not a CSS problem
      jeffcroft.com/sidenotes/2007/mar/13/clarifying-
      comments-i-made-typography-panel-sxsw/

  *   IE7’s PageZoom circumvents problem
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic UniTs



     “As IE7 takes over more and more of the IE/
     Win browser share, the decision to avoid pixel
      sizing becomes less and less of a sealed tomb.”
     www.wilsonminer.com/posts/2007/mar/16/problem-pixels/
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic UniTs

  *   Relative sizes are based on the current font size:
         Either browser default (16 pixels); or
         Inherited value from parent element

      ExAmPlE Of nEsTEd RElATivE sizinG
      p { font-size: 120%; }
      strong { font-size: 120%; }
      <p><strong>How big is my text?</strong></p>
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic UniTs

  *   Richard Rutter suggests resetting browser
      default font size to 10px using percentages
      body { font-size: 62.5%; }

  *   Then size text in relative units from that
      base: eg, 1.2em or 120% to obtain 12px

  *   Downside: inheritance means more complex
      calculations required for nested elements
      www.clagnut.com/blog/348/
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic UniTs
      The Measure
  *   The measure is the length of a single line of text

  *   Choosing an appropriate measure for text
      blocks is important for maintaining readability
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic UniTs
      In CSS, the measure is specified using
      one of the width properties
  *   It is ideal to set the measure in ems, so it is
      directly proportional to the size of the type

  * words per line even when font sizecharacters/
    Maintains a consistent number of
                                       is scaled

  *   Use min-width and max-width to constrain
      the measure within larger parent elements
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic UniTs

  *   45 – 75 characters (30 – 50 ems) per line is
      generally considered optimal for readability

      ExAmPlE Of mEAsURE sizEd WiTH Ems
      #wrap {
        width: 40em;
        min-width: 300px;
        max-width: 500px;
      }
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic UniTs
                                     wikipedia.org
                                     Good measure,
                                     approximately 80
                                     characters per line
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic UniTs
                                     wikipedia.org
                                     Until you
                                     do this...
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic UniTs
      Leading
  *   Leading is the distance between baselines of type

  *   Originates from traditional typesetting
      methods, use of lead strips to separate type

  *   Establishing a vertical rhythm and appropriate
      leading improves overall appearance and readability

  *   Single easiest way to make your page
      look more professional
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic UniTs




kstatecollegian.com, poor leading    nytimes.com, good leading
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic UniTs
      In CSS, leading is specified using
      the line-height property
  *   Can be specified in absolute or relative units

  *   Better to provide a unitless value to ensure
      line-height scales when text is resized
      p { line-height: 1.5; }
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic UniTs

  *   Calculate line-height as rhythm
      (or baseline) divided by text size
      16 ÷ 11 = 1.455

  *   Body copy generally benefits from positive
      leading, while browser default is to set solid

  *   Sans-serif faces, heavier faces and
      longer measures require more lead
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE


     “The density of texture in a written or typeset
     page is referred to as its color. This has nothing
     to do with red or green ink; it refers only to the
      darkness or blackness of the letterform in mass…
      evenness of color is the typographer’s normal aim.”
           — robert bringhurst, the elements of typographic style
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
      Baseline grids
  *   Establish a typographic grid as part of your design

  *   Select an appropriate baseline value, generally
      matching the line-height of your body copy

  *   Derive margins and leading for other elements
      as multiples of this baseline value

  *   Image dimensions can be made to fit the grid also

  *   An admirable goal, but not always achievable
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
      ExAmPlE Of A BAsElinE GRid

  *   11-pixel body text with 16 pixels of leading (11/16)

  *   Headings at 24/32

  *   Sub-headings at 13/16 with 8 pixels
      of margin above and below

  *   Sidebar copy at 10/16

  *   Paragraphs and lists with 8 pixel margin below
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
      REsETTinG BROWsER dEfAUlTs

  * Reset all browser margins/padding to zero
  * “perfectdependence on defaults and creates
    Breaks
             knowledge” about your styles

  *   “Reset Reloaded” by Eric Meyer
      meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/

  *   YUI (Yahoo! User Interface) Reset
      developer.yahoo.com/yui/reset/
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
      REsOURcEs — BAsElinE GRids

  *   “Setting Type on the Web” by Wilson Miner
      www.alistapart.com/articles/settingtypeontheweb/

  *   “Compose to a Vertical Rhythm” by Richard Rutter
      24ways.org/2006/compose-to-a-vertical-rhythm/

  *   Syncotype by Rob Goodlatte
      robgoodlatte.com/2007/07/31/syncotype-your-baselines/

  *   Vertical Rhythm Calculator
      drewish.com/tools/vertical-rhythm/
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
                                     Example baseline
                                     grid from “Setting
                                     Type on the Web”
                                     by Wilson Miner
                                     alistapart.com
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
      REsOURcEs — TYPOGRAPHic GRids

  *   “Gridding the 960” by Cameron Moll
      cameronmoll.com/archives/2006/12/gridding_the_960/

  *   CSS Grid Calculator
      www.29digital.net/grid/

  *   Blueprint CSS Framework by Olav Bjørkøy
      code.google.com/p/blueprintcss/
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
                                     29 Digital’s CSS
                                     Grid Calculator
                                     www.29digital.net/grid/
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
      REsOURcEs — fURTHER REAdinG

  *   Read Mark Boulton, Khoi Vinh et al for more
      on horizontal and vertical rhythm:
      www.markboulton.co.uk/journal/comments/five_
      simple_steps_to_designing_grid_systems_part_1/
      www.subtraction.com/archives/2007/0318_oh_yeeaahh.php
      webtypography.net
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
      Entities
  *   Some typographic elements you may
      be familiar with from the web:




      'quot;-
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE

  *   Those are “primes” and the “hyphen”

  *   Often used when typographer’s quote marks
      or a dash would be more appropriate:




      ‘’“”–—
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE

  *   Examples:       “Quoted text”    6' 10quot;      6:00–7:00am
                      Phrase break – with spaces—or without
                      Catherine Zeta-Jones         10−2=8

  *   Convention changing as resolution increases

  *   Use the correct entity notation where possible
      www.cookwood.com/html/extras/entities.html

  *   Work best with UTF-8 page encoding
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
      nAmEd And dEcimAl EnTiTiEs
      “     opening double quote     &ldquo;    &#8220;
      ”     closing double quote     &rdquo;    &#8221;
      ‘     opening single quote     &lsquo;    &#8216;
      ’     closing single quote     &rsquo;    &#8217;
      –     en dash                  &ndash;    &#8211;
      —     em dash                  &mdash;    &#8212;
      −     minus                    &minus;    &#8722;
      ×     multiplication symbol    &times;    &#215;
      ©     copyright symbol         &copy;     &#169;
      ™     trademark symbol         &trade;    &#8482;
      …     (horizontal) ellipsis    &hellip;   &#8230;
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
      UsEfUl TOOls

  *   SmartyPants and Textile plugins
      daringfireball.net/projects/smartypants/
      textism.com/tools/textile/

  *   Typogrify for Django
      code.google.com/p/typogrify/

  *   “The trouble with EM ’n EN” by Peter K Sheerin
      www.alistapart.com/articles/emen/
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
      fROm THE smARTYPAnTs mAnUAl

  * “curly” quote HTML entities
     Straight quotes ( quot; and ' ) into


  *   Backticks-style quotes ( `` like this ' ' )
      into “curly” quote HTML entities

  *   Dashes ( -- and --- ) into en- and em-dash entities

  *   Three consecutive dots ( ... ) into an ellipsis entity
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE



     “Because proper typographic
     punctuation looks sharp.”
                        — john gruber, creator of smartypants
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
      Ampersands
  *   Elements of Typographic Style 5.1.3: “In heads
      and titles, use the best available ampersand.”

  *   SimpleBits specifies italic versions of Baskerville,
      Goudy Old Style, Palatino and Book Antiqua
      www.simplebits.com
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE




SimpleBits ampersand: <span class=quot;ampquot;>&amp;</span>
span.amp { font-family: Baskerville, quot;Goudy Old Stylequot;,
           quot;Palatinoquot;, quot;Book Antiquaquot;, serif; }
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
      Typefaces
  *   Client-side rendering means fonts must be
      installed on target computer for HTML pages

  *   Common web faces are designed for the medium

  *   Make deliberate choices for your defaults

  *   Specify common system fonts such as
      Helvetica Neue (comes with OS X)
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
      cOmmOn issUEs

  *   Font stacks only specify a single size for all faces

  *   Arial and Verdana not a good typographic match

  *   The default font stack from applications
      such as Dreamweaver includes both


      Arial Verdana
      Arial is visually more compact than Verdana
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
      nEW OPTiOns — visTA fOnTs

  * New fonts included with Windows Vista OS
  * Ligatures, lining figures
  * Size issues, better match with Arial than Verdana
  * withoutfor ClearType, look awful
    Tuned
             anti-aliasing
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TYPOGRAPHic TEcHniqUE
      visTA fOnTs & GOOd mATcHEs

      Calibri                    Arial
                                 Myriad
      Corbel
      Cambria                    Georgia
                                 Verdana
      Candara
                                 Palatino, Book Antiqua
      Constantia
      Consolas                   Andale Mono
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TRicks & TREATs

  *   Negative text indent – image replacement technique
      by Mike Rundle, based on an idea by Todd Fahrner
      h1 { text-indent: -999em; overflow: hidden; }

  *   sIFR for headings – unobtrusive JavaScript Flash
      replacement technique by Mike Davidson and Mark
      Wubben, based on an idea by Shaun Inman
      www.mikeindustries.com/sifr/
august af bjjg
WEB TYPOGRAPHY auckland web meetup



TRicks & TREATs

  * TextPattern, Joomla, evenInman for WordPress,
    Widon’t plugin by Shaun
                              SlideShowPro!
      www.shauninman.com/archive/2007/01/03/
      widont_2_1_wordpress_plugin/

  *   Use color: #333; for dark text on a light background
      and color: #ccc; for light text on a dark background

  *   Don’t justify without reason until support for automatic
      hyphenation and resolution-independence improves
august af bjjg
WEB TYPOGRAPHY auckland web meetup



THE End


     “95% of information on the web is written
     language. It is only logical … that a web
      designer should get good training in
     the main discipline of shaping written
     information, in other words: Typography.”
                                     — oliver reichenstein

More Related Content

What's hot

Basic concept of Graphic Design
Basic concept of Graphic DesignBasic concept of Graphic Design
Basic concept of Graphic DesignAshikul Islam
 
Graphic Design Elements and Principles - Tips and inspiration
Graphic Design Elements and Principles - Tips and inspirationGraphic Design Elements and Principles - Tips and inspiration
Graphic Design Elements and Principles - Tips and inspirationShahria Hossain
 
Graphic Designing Presentation (Tips & Tricks)
Graphic Designing Presentation (Tips & Tricks)Graphic Designing Presentation (Tips & Tricks)
Graphic Designing Presentation (Tips & Tricks)RJNithin
 
Graphic design composition
Graphic design compositionGraphic design composition
Graphic design compositionsuniltalekar1
 
An Introduction To Graphic Design
An Introduction To Graphic DesignAn Introduction To Graphic Design
An Introduction To Graphic DesignAfshan Kirmani
 
Design Principles and Elements
Design Principles and ElementsDesign Principles and Elements
Design Principles and ElementsMark Rotondella
 
Visual design
Visual designVisual design
Visual designIra Sagu
 
Typography Essentials: Part 1
Typography Essentials: Part 1Typography Essentials: Part 1
Typography Essentials: Part 1Jennifer Janviere
 
Basics of typography kerning
Basics of typography kerningBasics of typography kerning
Basics of typography kerningalfiyafalak
 
InDesign Intro
InDesign IntroInDesign Intro
InDesign IntroSam Georgi
 
Graphic design by Muhammad Mujeeb Riaz
Graphic design by Muhammad Mujeeb RiazGraphic design by Muhammad Mujeeb Riaz
Graphic design by Muhammad Mujeeb RiazMujeeb Riaz
 
Graphic design for marketing professionals
Graphic design for marketing professionalsGraphic design for marketing professionals
Graphic design for marketing professionalsJason Tham
 
Elements of Graphic Design
Elements of Graphic DesignElements of Graphic Design
Elements of Graphic Designclewis86
 
Introduction to Graphic Design PDF [slideshare]
Introduction to Graphic Design PDF [slideshare]Introduction to Graphic Design PDF [slideshare]
Introduction to Graphic Design PDF [slideshare]Natasha Zndin
 
Graphic Design
Graphic DesignGraphic Design
Graphic DesignBen Fayza
 
Windows form application - C# Training
Windows form application - C# Training Windows form application - C# Training
Windows form application - C# Training Moutasm Tamimi
 

What's hot (20)

Basic concept of Graphic Design
Basic concept of Graphic DesignBasic concept of Graphic Design
Basic concept of Graphic Design
 
Graphic Design Elements and Principles - Tips and inspiration
Graphic Design Elements and Principles - Tips and inspirationGraphic Design Elements and Principles - Tips and inspiration
Graphic Design Elements and Principles - Tips and inspiration
 
Graphic Designing Presentation (Tips & Tricks)
Graphic Designing Presentation (Tips & Tricks)Graphic Designing Presentation (Tips & Tricks)
Graphic Designing Presentation (Tips & Tricks)
 
Graphic design
Graphic designGraphic design
Graphic design
 
Graphic design composition
Graphic design compositionGraphic design composition
Graphic design composition
 
An Introduction To Graphic Design
An Introduction To Graphic DesignAn Introduction To Graphic Design
An Introduction To Graphic Design
 
Typography
TypographyTypography
Typography
 
Intro to Graphic Design Elements
Intro to Graphic Design ElementsIntro to Graphic Design Elements
Intro to Graphic Design Elements
 
GRAPHIC DESIGN PRESENTATION
GRAPHIC DESIGN PRESENTATIONGRAPHIC DESIGN PRESENTATION
GRAPHIC DESIGN PRESENTATION
 
Design Principles and Elements
Design Principles and ElementsDesign Principles and Elements
Design Principles and Elements
 
Visual design
Visual designVisual design
Visual design
 
Typography Essentials: Part 1
Typography Essentials: Part 1Typography Essentials: Part 1
Typography Essentials: Part 1
 
Basics of typography kerning
Basics of typography kerningBasics of typography kerning
Basics of typography kerning
 
InDesign Intro
InDesign IntroInDesign Intro
InDesign Intro
 
Graphic design by Muhammad Mujeeb Riaz
Graphic design by Muhammad Mujeeb RiazGraphic design by Muhammad Mujeeb Riaz
Graphic design by Muhammad Mujeeb Riaz
 
Graphic design for marketing professionals
Graphic design for marketing professionalsGraphic design for marketing professionals
Graphic design for marketing professionals
 
Elements of Graphic Design
Elements of Graphic DesignElements of Graphic Design
Elements of Graphic Design
 
Introduction to Graphic Design PDF [slideshare]
Introduction to Graphic Design PDF [slideshare]Introduction to Graphic Design PDF [slideshare]
Introduction to Graphic Design PDF [slideshare]
 
Graphic Design
Graphic DesignGraphic Design
Graphic Design
 
Windows form application - C# Training
Windows form application - C# Training Windows form application - C# Training
Windows form application - C# Training
 

Viewers also liked

Type on the Web (with WordPress)
Type on the Web (with WordPress)Type on the Web (with WordPress)
Type on the Web (with WordPress)Tadpole Collective
 
Web Typography Fundamentals: From Gutenberg to Google v1
Web Typography Fundamentals: From Gutenberg to Google  v1Web Typography Fundamentals: From Gutenberg to Google  v1
Web Typography Fundamentals: From Gutenberg to Google v1billcenglish
 
A crash course in typography
A crash course in typographyA crash course in typography
A crash course in typographyMigle Migle
 
The Power of Typography
The Power of TypographyThe Power of Typography
The Power of Typography[x]cube LABS
 
Webfonts: Demystified
Webfonts: DemystifiedWebfonts: Demystified
Webfonts: DemystifiedMel Choyce
 
Web Typography: A (Brief) Review
Web Typography: A (Brief) ReviewWeb Typography: A (Brief) Review
Web Typography: A (Brief) ReviewDan Rubin
 
Beautiful Layouts Through Beautiful Type
Beautiful Layouts Through Beautiful TypeBeautiful Layouts Through Beautiful Type
Beautiful Layouts Through Beautiful Typejeff_croft
 
Modernist Typography and the Swiss grid - Carlo Giannasca
Modernist Typography and the Swiss grid - Carlo GiannascaModernist Typography and the Swiss grid - Carlo Giannasca
Modernist Typography and the Swiss grid - Carlo GiannascaFrostSydney
 
Spice Up Your Everything
Spice Up Your EverythingSpice Up Your Everything
Spice Up Your EverythingMatt Badgley
 
Grid Systems in Graphic Design by ADMEC Multimedia Institute
Grid Systems in Graphic Design by ADMEC Multimedia InstituteGrid Systems in Graphic Design by ADMEC Multimedia Institute
Grid Systems in Graphic Design by ADMEC Multimedia InstituteRavi Bhadauria
 
Grid Systems: Building Blocks to a Better User Experience
Grid Systems: Building Blocks to a Better User ExperienceGrid Systems: Building Blocks to a Better User Experience
Grid Systems: Building Blocks to a Better User ExperienceDustin DiTommaso
 

Viewers also liked (13)

Type on the Web (with WordPress)
Type on the Web (with WordPress)Type on the Web (with WordPress)
Type on the Web (with WordPress)
 
Web Typography Fundamentals: From Gutenberg to Google v1
Web Typography Fundamentals: From Gutenberg to Google  v1Web Typography Fundamentals: From Gutenberg to Google  v1
Web Typography Fundamentals: From Gutenberg to Google v1
 
A crash course in typography
A crash course in typographyA crash course in typography
A crash course in typography
 
The Power of Typography
The Power of TypographyThe Power of Typography
The Power of Typography
 
Webfonts: Demystified
Webfonts: DemystifiedWebfonts: Demystified
Webfonts: Demystified
 
Web Typography: A (Brief) Review
Web Typography: A (Brief) ReviewWeb Typography: A (Brief) Review
Web Typography: A (Brief) Review
 
Beautiful Layouts Through Beautiful Type
Beautiful Layouts Through Beautiful TypeBeautiful Layouts Through Beautiful Type
Beautiful Layouts Through Beautiful Type
 
Responsive Typography II
Responsive Typography IIResponsive Typography II
Responsive Typography II
 
Modernist Typography and the Swiss grid - Carlo Giannasca
Modernist Typography and the Swiss grid - Carlo GiannascaModernist Typography and the Swiss grid - Carlo Giannasca
Modernist Typography and the Swiss grid - Carlo Giannasca
 
Spice Up Your Everything
Spice Up Your EverythingSpice Up Your Everything
Spice Up Your Everything
 
Grid Systems in Graphic Design by ADMEC Multimedia Institute
Grid Systems in Graphic Design by ADMEC Multimedia InstituteGrid Systems in Graphic Design by ADMEC Multimedia Institute
Grid Systems in Graphic Design by ADMEC Multimedia Institute
 
Grid slide show
Grid slide showGrid slide show
Grid slide show
 
Grid Systems: Building Blocks to a Better User Experience
Grid Systems: Building Blocks to a Better User ExperienceGrid Systems: Building Blocks to a Better User Experience
Grid Systems: Building Blocks to a Better User Experience
 

Similar to Web Typography

Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web DesignMike Wilcox
 
Exploring Critical Rendering Path
Exploring Critical Rendering PathExploring Critical Rendering Path
Exploring Critical Rendering PathRaphael Amorim
 
Wireframes for Web Design
Wireframes for Web DesignWireframes for Web Design
Wireframes for Web DesignMindy McAdams
 
The latest in site speed: advanced #webperf 2018
The latest in site speed: advanced #webperf 2018The latest in site speed: advanced #webperf 2018
The latest in site speed: advanced #webperf 2018Anton Shulke
 
User Defined Characters Solution Proposal
User Defined Characters Solution ProposalUser Defined Characters Solution Proposal
User Defined Characters Solution ProposalJun Fujisawa
 
Killing the Angle Bracket
Killing the Angle BracketKilling the Angle Bracket
Killing the Angle Bracketjnewmanux
 
Bridging the gap between designers and developers at the Guardian
Bridging the gap between designers and developers at the GuardianBridging the gap between designers and developers at the Guardian
Bridging the gap between designers and developers at the GuardianKaelig Deloumeau-Prigent
 
Svg Overview And Js Libraries
Svg Overview And Js LibrariesSvg Overview And Js Libraries
Svg Overview And Js Librariesseamusjr
 
Elegant Web Typography
Elegant Web TypographyElegant Web Typography
Elegant Web Typographyjeff_croft
 
[convergese] Adaptive Images in Responsive Web Design
[convergese] Adaptive Images in Responsive Web Design[convergese] Adaptive Images in Responsive Web Design
[convergese] Adaptive Images in Responsive Web DesignChristopher Schmitt
 
PCB Design with KiCad.pdf
PCB Design with KiCad.pdfPCB Design with KiCad.pdf
PCB Design with KiCad.pdfYingChen385386
 
Style Your Site Part 2
Style Your Site Part 2Style Your Site Part 2
Style Your Site Part 2Ben MacNeill
 
Adobe MAX 2008: HTML/CSS + Fireworks
Adobe MAX 2008: HTML/CSS + FireworksAdobe MAX 2008: HTML/CSS + Fireworks
Adobe MAX 2008: HTML/CSS + FireworksNathan Smith
 
Style Your Site Part 1
Style Your Site Part 1Style Your Site Part 1
Style Your Site Part 1Ben MacNeill
 
[2015/2016] HTML5 and CSS3 Refresher
[2015/2016] HTML5 and CSS3 Refresher[2015/2016] HTML5 and CSS3 Refresher
[2015/2016] HTML5 and CSS3 RefresherIvano Malavolta
 

Similar to Web Typography (20)

Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web Design
 
Exploring Critical Rendering Path
Exploring Critical Rendering PathExploring Critical Rendering Path
Exploring Critical Rendering Path
 
Wireframes for Web Design
Wireframes for Web DesignWireframes for Web Design
Wireframes for Web Design
 
The latest in site speed: advanced #webperf 2018
The latest in site speed: advanced #webperf 2018The latest in site speed: advanced #webperf 2018
The latest in site speed: advanced #webperf 2018
 
User Defined Characters Solution Proposal
User Defined Characters Solution ProposalUser Defined Characters Solution Proposal
User Defined Characters Solution Proposal
 
Killing the Angle Bracket
Killing the Angle BracketKilling the Angle Bracket
Killing the Angle Bracket
 
Professional Css
Professional CssProfessional Css
Professional Css
 
Coding the UI
Coding the UICoding the UI
Coding the UI
 
Coding Ui
Coding UiCoding Ui
Coding Ui
 
Bridging the gap between designers and developers at the Guardian
Bridging the gap between designers and developers at the GuardianBridging the gap between designers and developers at the Guardian
Bridging the gap between designers and developers at the Guardian
 
Svg Overview And Js Libraries
Svg Overview And Js LibrariesSvg Overview And Js Libraries
Svg Overview And Js Libraries
 
Elegant Web Typography
Elegant Web TypographyElegant Web Typography
Elegant Web Typography
 
[convergese] Adaptive Images in Responsive Web Design
[convergese] Adaptive Images in Responsive Web Design[convergese] Adaptive Images in Responsive Web Design
[convergese] Adaptive Images in Responsive Web Design
 
PCB Design with KiCad.pdf
PCB Design with KiCad.pdfPCB Design with KiCad.pdf
PCB Design with KiCad.pdf
 
Style Your Site Part 2
Style Your Site Part 2Style Your Site Part 2
Style Your Site Part 2
 
Adobe MAX 2008: HTML/CSS + Fireworks
Adobe MAX 2008: HTML/CSS + FireworksAdobe MAX 2008: HTML/CSS + Fireworks
Adobe MAX 2008: HTML/CSS + Fireworks
 
Style Your Site Part 1
Style Your Site Part 1Style Your Site Part 1
Style Your Site Part 1
 
[2015/2016] HTML5 and CSS3 Refresher
[2015/2016] HTML5 and CSS3 Refresher[2015/2016] HTML5 and CSS3 Refresher
[2015/2016] HTML5 and CSS3 Refresher
 
Tools for Modern Web Design
Tools for Modern Web DesignTools for Modern Web Design
Tools for Modern Web Design
 
Html5/CSS3
Html5/CSS3Html5/CSS3
Html5/CSS3
 

Recently uploaded

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

Web Typography

  • 1. WEB TYPOGRAPHY Presented by Matthew Buchanan auckland web meetup, august af bjjg With acknowledgement to Jeff Croft, Mark Boulton, Richard Rutter
  • 2. august af bjjg WEB TYPOGRAPHY auckland web meetup “The screen is not a place where you want to get fancy with fonts.” — john gruber, the talk show
  • 3. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic UniTs The em * when type is distance(ie, with no leading) An em is the between baselines set solid * Relative unit equivalent to type size * Generally treated as a square entity * An en is half the width of an em
  • 4. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic UniTs In CSS, the em square is set using the font-size property * Can be set in a variety of units: Absolute (pixels) Relative (ems, percentages) * Absolute sizes do not rely on inheritance * Type with size specified in pixels cannot be resized using browser controls in IE6 or below
  • 5. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic UniTs WHicH is BETTER? * Pixel sizing better for maths * Em sizing more flexible as margins grow as text size increases * Sizing text in pixels is an IE problem, not a CSS problem jeffcroft.com/sidenotes/2007/mar/13/clarifying- comments-i-made-typography-panel-sxsw/ * IE7’s PageZoom circumvents problem
  • 6. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic UniTs “As IE7 takes over more and more of the IE/ Win browser share, the decision to avoid pixel sizing becomes less and less of a sealed tomb.” www.wilsonminer.com/posts/2007/mar/16/problem-pixels/
  • 7. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic UniTs * Relative sizes are based on the current font size: Either browser default (16 pixels); or Inherited value from parent element ExAmPlE Of nEsTEd RElATivE sizinG p { font-size: 120%; } strong { font-size: 120%; } <p><strong>How big is my text?</strong></p>
  • 8. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic UniTs * Richard Rutter suggests resetting browser default font size to 10px using percentages body { font-size: 62.5%; } * Then size text in relative units from that base: eg, 1.2em or 120% to obtain 12px * Downside: inheritance means more complex calculations required for nested elements www.clagnut.com/blog/348/
  • 9. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic UniTs The Measure * The measure is the length of a single line of text * Choosing an appropriate measure for text blocks is important for maintaining readability
  • 10. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic UniTs In CSS, the measure is specified using one of the width properties * It is ideal to set the measure in ems, so it is directly proportional to the size of the type * words per line even when font sizecharacters/ Maintains a consistent number of is scaled * Use min-width and max-width to constrain the measure within larger parent elements
  • 11. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic UniTs * 45 – 75 characters (30 – 50 ems) per line is generally considered optimal for readability ExAmPlE Of mEAsURE sizEd WiTH Ems #wrap { width: 40em; min-width: 300px; max-width: 500px; }
  • 12. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic UniTs wikipedia.org Good measure, approximately 80 characters per line
  • 13. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic UniTs wikipedia.org Until you do this...
  • 14. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic UniTs Leading * Leading is the distance between baselines of type * Originates from traditional typesetting methods, use of lead strips to separate type * Establishing a vertical rhythm and appropriate leading improves overall appearance and readability * Single easiest way to make your page look more professional
  • 15. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic UniTs kstatecollegian.com, poor leading nytimes.com, good leading
  • 16. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic UniTs In CSS, leading is specified using the line-height property * Can be specified in absolute or relative units * Better to provide a unitless value to ensure line-height scales when text is resized p { line-height: 1.5; }
  • 17. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic UniTs * Calculate line-height as rhythm (or baseline) divided by text size 16 ÷ 11 = 1.455 * Body copy generally benefits from positive leading, while browser default is to set solid * Sans-serif faces, heavier faces and longer measures require more lead
  • 18. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE “The density of texture in a written or typeset page is referred to as its color. This has nothing to do with red or green ink; it refers only to the darkness or blackness of the letterform in mass… evenness of color is the typographer’s normal aim.” — robert bringhurst, the elements of typographic style
  • 19. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE Baseline grids * Establish a typographic grid as part of your design * Select an appropriate baseline value, generally matching the line-height of your body copy * Derive margins and leading for other elements as multiples of this baseline value * Image dimensions can be made to fit the grid also * An admirable goal, but not always achievable
  • 20. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE ExAmPlE Of A BAsElinE GRid * 11-pixel body text with 16 pixels of leading (11/16) * Headings at 24/32 * Sub-headings at 13/16 with 8 pixels of margin above and below * Sidebar copy at 10/16 * Paragraphs and lists with 8 pixel margin below
  • 21. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE REsETTinG BROWsER dEfAUlTs * Reset all browser margins/padding to zero * “perfectdependence on defaults and creates Breaks knowledge” about your styles * “Reset Reloaded” by Eric Meyer meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ * YUI (Yahoo! User Interface) Reset developer.yahoo.com/yui/reset/
  • 22. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE REsOURcEs — BAsElinE GRids * “Setting Type on the Web” by Wilson Miner www.alistapart.com/articles/settingtypeontheweb/ * “Compose to a Vertical Rhythm” by Richard Rutter 24ways.org/2006/compose-to-a-vertical-rhythm/ * Syncotype by Rob Goodlatte robgoodlatte.com/2007/07/31/syncotype-your-baselines/ * Vertical Rhythm Calculator drewish.com/tools/vertical-rhythm/
  • 23. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE Example baseline grid from “Setting Type on the Web” by Wilson Miner alistapart.com
  • 24. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE REsOURcEs — TYPOGRAPHic GRids * “Gridding the 960” by Cameron Moll cameronmoll.com/archives/2006/12/gridding_the_960/ * CSS Grid Calculator www.29digital.net/grid/ * Blueprint CSS Framework by Olav Bjørkøy code.google.com/p/blueprintcss/
  • 25. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE 29 Digital’s CSS Grid Calculator www.29digital.net/grid/
  • 26. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE REsOURcEs — fURTHER REAdinG * Read Mark Boulton, Khoi Vinh et al for more on horizontal and vertical rhythm: www.markboulton.co.uk/journal/comments/five_ simple_steps_to_designing_grid_systems_part_1/ www.subtraction.com/archives/2007/0318_oh_yeeaahh.php webtypography.net
  • 27. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE Entities * Some typographic elements you may be familiar with from the web: 'quot;-
  • 28. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE * Those are “primes” and the “hyphen” * Often used when typographer’s quote marks or a dash would be more appropriate: ‘’“”–—
  • 29. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE * Examples: “Quoted text” 6' 10quot; 6:00–7:00am Phrase break – with spaces—or without Catherine Zeta-Jones 10−2=8 * Convention changing as resolution increases * Use the correct entity notation where possible www.cookwood.com/html/extras/entities.html * Work best with UTF-8 page encoding
  • 30. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE nAmEd And dEcimAl EnTiTiEs “ opening double quote &ldquo; &#8220; ” closing double quote &rdquo; &#8221; ‘ opening single quote &lsquo; &#8216; ’ closing single quote &rsquo; &#8217; – en dash &ndash; &#8211; — em dash &mdash; &#8212; − minus &minus; &#8722; × multiplication symbol &times; &#215; © copyright symbol &copy; &#169; ™ trademark symbol &trade; &#8482; … (horizontal) ellipsis &hellip; &#8230;
  • 31. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE UsEfUl TOOls * SmartyPants and Textile plugins daringfireball.net/projects/smartypants/ textism.com/tools/textile/ * Typogrify for Django code.google.com/p/typogrify/ * “The trouble with EM ’n EN” by Peter K Sheerin www.alistapart.com/articles/emen/
  • 32. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE fROm THE smARTYPAnTs mAnUAl * “curly” quote HTML entities Straight quotes ( quot; and ' ) into * Backticks-style quotes ( `` like this ' ' ) into “curly” quote HTML entities * Dashes ( -- and --- ) into en- and em-dash entities * Three consecutive dots ( ... ) into an ellipsis entity
  • 33. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE “Because proper typographic punctuation looks sharp.” — john gruber, creator of smartypants
  • 34. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE Ampersands * Elements of Typographic Style 5.1.3: “In heads and titles, use the best available ampersand.” * SimpleBits specifies italic versions of Baskerville, Goudy Old Style, Palatino and Book Antiqua www.simplebits.com
  • 35. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE SimpleBits ampersand: <span class=quot;ampquot;>&amp;</span> span.amp { font-family: Baskerville, quot;Goudy Old Stylequot;, quot;Palatinoquot;, quot;Book Antiquaquot;, serif; }
  • 36. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE Typefaces * Client-side rendering means fonts must be installed on target computer for HTML pages * Common web faces are designed for the medium * Make deliberate choices for your defaults * Specify common system fonts such as Helvetica Neue (comes with OS X)
  • 37. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE cOmmOn issUEs * Font stacks only specify a single size for all faces * Arial and Verdana not a good typographic match * The default font stack from applications such as Dreamweaver includes both Arial Verdana Arial is visually more compact than Verdana
  • 38. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE nEW OPTiOns — visTA fOnTs * New fonts included with Windows Vista OS * Ligatures, lining figures * Size issues, better match with Arial than Verdana * withoutfor ClearType, look awful Tuned anti-aliasing
  • 39. august af bjjg WEB TYPOGRAPHY auckland web meetup TYPOGRAPHic TEcHniqUE visTA fOnTs & GOOd mATcHEs Calibri Arial Myriad Corbel Cambria Georgia Verdana Candara Palatino, Book Antiqua Constantia Consolas Andale Mono
  • 40. august af bjjg WEB TYPOGRAPHY auckland web meetup TRicks & TREATs * Negative text indent – image replacement technique by Mike Rundle, based on an idea by Todd Fahrner h1 { text-indent: -999em; overflow: hidden; } * sIFR for headings – unobtrusive JavaScript Flash replacement technique by Mike Davidson and Mark Wubben, based on an idea by Shaun Inman www.mikeindustries.com/sifr/
  • 41. august af bjjg WEB TYPOGRAPHY auckland web meetup TRicks & TREATs * TextPattern, Joomla, evenInman for WordPress, Widon’t plugin by Shaun SlideShowPro! www.shauninman.com/archive/2007/01/03/ widont_2_1_wordpress_plugin/ * Use color: #333; for dark text on a light background and color: #ccc; for light text on a dark background * Don’t justify without reason until support for automatic hyphenation and resolution-independence improves
  • 42. august af bjjg WEB TYPOGRAPHY auckland web meetup THE End “95% of information on the web is written language. It is only logical … that a web designer should get good training in the main discipline of shaping written information, in other words: Typography.” — oliver reichenstein